'use strict';

function compute_average(collection) {
  let sum=0;
  for(let i=0;i<collection.length;i++)
    {
      sum+=collection[i];
    }
  let average=sum/collection.length;
  return average;
}

module.exports = compute_average;

